package com.xindaoapp.happypet.bean;

import java.util.List;

public class AddPet extends BaseEntity {

    private List<AddPetInfo> array;

    public List<AddPetInfo> getArray() {
        return array;
    }

    public void setArray(List<AddPetInfo> array) {
        this.array = array;
    }

    @Override
    public String toString() {
        return "AddPet [array=" + array + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((array == null) ? 0 : array.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        AddPet other = (AddPet) obj;
        if (array == null) {
            if (other.array != null)
                return false;
        } else if (!array.equals(other.array))
            return false;
        return true;
    }

    public class AddPetInfo {
        private String breed;
        public String breedid;

        public String getBreed() {
            return breed;
        }

        public void setBreed(String breed) {
            this.breed = breed;
        }

        @Override
        public String toString() {
            return "AddPetInfo [breed=" + breed + "]";
        }

        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + getOuterType().hashCode();
            result = prime * result + ((breed == null) ? 0 : breed.hashCode());
            return result;
        }

        @Override
        public boolean equals(Object obj) {
            if (this == obj)
                return true;
            if (obj == null)
                return false;
            if (getClass() != obj.getClass())
                return false;
            AddPetInfo other = (AddPetInfo) obj;
            if (!getOuterType().equals(other.getOuterType()))
                return false;
            if (breed == null) {
                if (other.breed != null)
                    return false;
            } else if (!breed.equals(other.breed))
                return false;
            return true;
        }

        private AddPet getOuterType() {
            return AddPet.this;
        }
    }
}
